package com.none.web.service.beacon;

import com.none.core.model.Pager;
import com.none.web.model.TBeacon;

/**
 * Beacon业务
 * 
 * @author steve
 * 
 */
public interface IBeaconService {

	/**
	 * 新增beacon
	 * 
	 * @param beacon
	 * @param userId 
	 * @return
	 */
	public Object addBeacon(TBeacon beacon, String newsId, String userId) throws Exception;

	/**
	 * 获得所有Beacon
	 * 
	 * @return 很多个Beacon
	 */
	public Object listBeacon();

	/**
	 * 获得所有Beacon,可以分页
	 * 
	 * @param pager
	 *            分页
	 * @param userId 
	 * @return 很多个Beacon
	 */
	public Object searchBeacon(Pager pager, String ibeaconId, String userId) throws Exception;

	/**
	 * 获得所有Beacon,可以分页
	 * 
	 * @param beacon
	 * @return 很多个news
	 */
	public Object listNews(TBeacon beacon, String userId) throws Exception;

	/**
	 * 修改
	 * 
	 * @param beacon
	 * @param newsId
	 * @param userId 
	 * @return
	 */
	public Object editBeacon(TBeacon beacon, String newsId, String userId) throws Exception;

	/**
	 * 删除beacon
	 * 
	 * @param beaconId
	 * @param userId 
	 * @return
	 */
	public boolean delBeacon(String beaconId, String userId) throws Exception;
}
